{assign var='id_column' value=$listing->column_with_id}
<tr class="line_{$item.$id_column|wash} {if $tr_index%2 == 0}alternate{/if}">
	{if $listing->multiple_action}
		<td><input class="multiple_action" type="checkbox" name="multiple_action[{$item.id}]"/></td>
	{/if}
	{foreach from=$item key='valueKey' item='value'}
		{if $listing->columnsSettings.$valueKey.displayed}
			<td style="{if $listing->columnsSettings.$valueKey.hidden}display:none;{/if}" class="column_{$valueKey|wash} {if isset($listing->columnsSettings.$valueKey.class)}{$listing->columnsSettings.$valueKey.class}{/if} {if $listing->sortByColumn|wash == $valueKey|wash}sorted_by_this{/if} {if $listing->filterColumn|wash == $valueKey|wash && $listing->filterValue|wash != ''}filter_by_this{/if}">
				{if $listing->columnsSettings.$valueKey.editable}
				{if isset($listing->columnsSettings.$valueKey.html)}
					{$listing->columnsSettings.$valueKey.html}
				{/if}
				<div class="editable_field_contener {if $value|wash|strlen == 0}empty_field{/if}">
					<input type="text" class="id3_field" name="{$usefulTagNameExisting}" value="{$value|wash}" />
				</div>
				{elseif isset($listing->columnsSettings.$valueKey.href) && isset($listing->columnsSettings.$valueKey.onclick)}
				<a {if isset($listing->columnsSettings.$valueKey.onclick)}onclick="{$listing->columnsSettings.$valueKey.onclick}"{/if} href="{if !isset($listing->columnsSettings.$valueKey.onclick)}{$listing->columnsSettings.$valueKey.href}{else}#{/if}">
					{if isset($listing->columnsSettings.$valueKey.html)}
						{$listing->columnsSettings.$valueKey.html}
					{/if}
					{$value|wash}
				</a>
				{else}
				{if isset($listing->columnsSettings.$valueKey.html)}
					{$listing->columnsSettings.$valueKey.html}
				{/if}
				{$value|wash}
				{/if}
			</td>
		{/if}
	{/foreach}
	{if $listing->viewable}
		<td><a href="#" title="View...">View</a></td>
	{/if}
	{if $listing->editable}
		<td><a href="#" title="Edit...">Edit</a></td>
	{/if}
	{if $listing->removable}
		<td><a href="#" title="Remove...">Remove</a></td>
	{/if}
</tr>
